package user;
import book.BookList;
import operation.Ioperation;

public abstract class User {

    protected String name;
    protected Ioperation[] ioperations;

    //为了子类传值
    public User(String name) {
        this.name = name;
    }
    public abstract int  menu();

    public void useIoperation(int choice, BookList bookList){
        this.ioperations[choice].work(bookList);
    }

}
